<% if (obj.totalElements === 0) { %>
<div class="uk-text-center uk-margin-small-bottom">
    没有符合查询条件的数据
</div>
<% } else { %>
<div class="uk-overflow-container c1-table-1">
    <table class="pure-table uk-table uk-table-hover uk-table-striped uk-table-condensed uk-margin-small-bottom">
        <thead>
        <tr>
            <th><input type="checkbox" name="all-${(businessCode?uncap_first)!''}Id"></th>
            <th>名称</th>
            <th>创建人</th>
            <th>开始时间</th>
            <th>结束时间</th>
        </tr>
        </thead>
        <tbody>
        <% _.each(obj.datas, function(data) { %>
        <tr data-id="<%=data.${(businessCode?uncap_first)!''}Id%>">
            <td class="span-1"><input type="checkbox" name="${(businessCode?uncap_first)!''}Id" value="<%=data.${(businessCode?uncap_first)!''}Id%>"></td>
            <td><%=data.name%>/<%=data.${(businessCode?uncap_first)!''}Code%></td>
            <td><%=data.beginDate%></td>
            <td><%=data.endDate%></td>
        </tr>
        <% }); %>
        </tbody>
    </table>
</div>
<div class="pure-u-1 uk-text-right">
    总记录数<%= obj.totalElements %>条,总页数<%= obj.totalPages %>页,每页<select data-page-number="1" name="pageSize">
        <option>10</option>
        <option<%if(obj.pageSize === '25'){%> selected<%}%>>25</option>
        <option<%if(obj.pageSize === '50'){%> selected<%}%>>50</option>
        <option<%if(obj.pageSize === '100'){%> selected<%}%>>100</option>
    </select>条：
    <% if (obj.hasPrevious) { %>
    <a href="javascript:;" class="pure-button" data-page-number="1">首页</a>
    <a href="javascript:;" class="pure-button" data-page-number="<%= obj.previous %>">上一页</a>
    <% } %>
    <% _.each(obj.pages, function(page) { %>
    <a href="javascript:;" class="pure-button" data-page-number="<%= page %>" <% if (obj.page === page) { %> disabled<% }
    %>><%= page %></a>
    <% }); %>
    <% if (obj.hasNext) { %>
    <a href="javascript:;" class="pure-button" data-page-number="<%= obj.next %>">下一页</a>
    <a href="javascript:;" class="pure-button" data-page-number="<%= obj.totalPages %>">尾页</a>
    <% } %>
</div>
<% } %>